<div class="modal-header">
    <span class="modal-title" id="modal_white_title"><i class="fas fa-plus-circle mr-1"></i>{:lang('v_addnew')} {:lang('v_module_mulu')}</span>
    <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span></button>
</div>
<div class="modal-body">
    <form name="form_edit" id="form_edit" method="post" action="{:url('/templatemanage/creatfolder',['lang'=>$lang])}">
        <input type="hidden" name="lang" value="{$lang}">
        <input type="hidden" name="fromwhere" value="{$fromwhere}">
        <input type="hidden" name="folderpath" value="{$folderpath}">
        <div class="offset-md-2 col-md-8 mb-4">
            <h7>{:lang('v_mulu_title')}：</h7>
            <input type="text" name="foldername" class="form-control" maxlength="20" placeholder="{:lang('v_english_only')}">
        </div>
        <div class="offset-md-2 col-md-8 mb-4">
            {if is_file(app()->getRootPath().'.env')}
                <button type="submit" class="btn btn-success mr-4"><i class="fa fa-check-circle mr-2"></i>{:lang('v_save')}</button>
            {else /}
                <button type="button" class="do_ajax btn btn-success mr-4" onclick="javascript:do_ajax('#form_edit','.do_ajax','{:url('/templatemanage/creatfolder',['lang'=>$lang])}','');"><i class="fas fa-check-circle mr-2"></i>{:lang('v_save')}</button>
            {/if}
            <button type="button" class="btn btn-default" data-dismiss="modal"><i class="fa fa-times-circle mr-1"></i>{:lang('v_close')}</button>
        </div>
    </form>
</div>